package com.note.simpleshop.module.goods.dao;
import com.note.simpleshop.entity.TbGoods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
public interface GoodsRepository extends JpaRepository<TbGoods, String>, JpaSpecificationExecutor<TbGoods> {
    /**
     *
     * @param sale
     * @param columnId
     * @param isdelete
     * @return
     */
    List<TbGoods> findBySaleAndColumnIdAndIsDeleteOrderBySort(Integer sale,Long columnId, Integer isdelete);
    List<TbGoods> findBySaleAndColumnIdInAndIsDelete(Integer sale, List<String> columnIds, Integer isdelete);
}
